home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1988-11-27 | 12.6 KB | 308 lines | [ TEXT/ttxt]
P R I N T I T Version 3.0 G L O B A L C O M M A N D S I N S T R U C T I O N S Copyright © 1984,1988 Daniel A. Delamatta & George F. Farrell, Jr. All Rights Reserved «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» S H A R E W A R E N O T I C E This utility program is made available to the public as a shareware program. All rights and titles to this utility are reserved and copyrighted by Daniel Delamatta and George F. Farrell, Jr. You may use this program till your heart's content, and you may give copies to anyone. Under no circumstances are modified copies of this program allowed without the express consaent of the above programmers. If you do not wish to keep this program, then either delete it from your disks, or give it to someone else. If you do want to keep this program, then send your $15 shareware fee to: Daniel Delamatta 275 South St Ext Coventry, CT 06238 On receipt of your fee, you will be put on my mailing list, and will be kept informed of the latest updates. If you have any problems or questions, then write to the above address, and please state your version number. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» G L O B A L C O M M A N D S The following is a brief list of the global commands. Global commands are those type of commands which will affect the entire text printing output. CK Change the special character IA Ignore all text file commands IR Resume implementation of text file commands LNO Turn line numbering on LNF Turn line numbering off MLxxx Set left margin to xxx MRyyy Set right margin to yyy PH+ Omit top of page header PH[...] Print top of page header as ... PLxx Set page length to xx PNO Turn page numbering on PNF Turn page numbering off PSxxxxx Start numbering pages when you reach page xxxxx PWyyyyy Start page numbers with yyyyy Sx Set spacing to 1 (single), 2 (double) or 3 (triple) WWO Turn word wrap on WWF Turn word wrap off Any one of the above commands, as well as the others (see later) can be entered in either upper- or lower-case. The program will automatically convert them as needed. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 1. The command CK --------------- After issuing the command ~CK, the next legal character will become the new special character until either the text formatting is complete or another command of ~CK has been issued. For example: ~CK| yields | (down-slash) as the new special character. The legal characters are: ! @ # $ % ^ & * ( ) _ - + = { [ } ] | \ : ; " ' < , > . ? / ~ ` As you will notice, no numbers or letters are allowed. After changing the special character, it will remain in effect until changed in the text, or the end of the printing. It will not be kept. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 2. The commands IA, IR ------------------- The command ~IA will cause the program to Ignore All commands in the text, until ~IR is found. This feature comes in very handy in certain cases: explaining the commands (ie., these instructions) or multiple use of the special character which would cause the program to "go berserk" in trying to implement nonsensical commands. The two commands may be issued as often as needed. The IGNORE function is turned off initially. ~IA will turn it on. The command ~IR will cause the program to Implementation Resume, that is, to resume implementing all the commands. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 3. The commands LNO, LNF --------------------- The command ~LNO will cause the program to Line Number On, or number the lines of the text, whether in the word wrapping mode or not. All starting line numbers begin at 1, and will increase until 99,999 has been reached, at which point the program will halt. The LINE NUMBER function is turned off initially. ~LNO will turn it on. The command ~LNF will turn the Line Numbering oFf, until either the end of the program, or the command ~LNO is issued. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 4. The command MLxxx ------------------ The command ~ML will cause the program to Marginate Left at the position numerically designated as xxx (xxx is a number). For example, ~ML003 will put the first character at the third position. This command, during the printing of the text, will be useful for indentations of quotes. To use this command successfully, you must issue it the line BEFORE you want to use it, or put it on its own line. Text Sample Printed Output ----------- -------------- This is a test~ml005 of it. This is a test of it. To see what it will do.~ml010 To see what it will do. Ok? Ok? You may have noticed that the command is in lowercase. The program will recognize: ML, mL, Ml, or ml, that is, it does not care what case any of the commands are, whether global or not. However, you MUST issue them properly. Initially, the left margin is set at 11. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 5. The command MRxxx Like the ~MLxxx command, the ~MR command causes the program to Marginate Right, setting the right margin to the position denoted as xxx (where xxx represents a number). This number designates the last character position in the line. As in the above explanation, the ~MR command can be useful in indentation of quotes. This command is the absolute last position in the line. Should the text file line exceed the printing alloted length, the line will be either truncated (word wrap off) and the extra length printed on a new line with the quote (") printed at the beginning of the new line, or tacked on to the beginning of the next text file line (word wrap on). See WORD WRAP later. Initially, the right margin is set at 60. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 6. The commands PH+, PH[] The command ~PH+ will cause the Print Head function to be turned off. The plus sign is used instead of the blank [] to facilitate things, and to shorten an already too-long header command. Initially, the print header function is turned off. The command ~PH[] will cause the program to first turn on the print head function (if off), and secondly to replace the existing header (if any) with what is between the two square brackets. WARNING: do NOT issue a blank header (ie., issue ~PH[]), for this will cause the program to tell you that an error has occured. If you want to turn the header function off, use ~PH+ instead. Also, the header can only be 25 characters less then that width of the page. For example, at a standard 80 characters for normal- sized paper, that would leave you 55 characters. An example would be the header: ~PH[Pascal Pretty Printing Program Instructions]. You will note that the header is centered. If you want it off center, enter blank spaces either before the header (to shift right) or after it (to shift it left). If you should turn the header function off, when you turn it back on, you will have to re-enter the entire old header. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 7. The command PLxx The command ~PL will cause the program to set the Page Length to xx (where xx represents a number). The most that you can getout of the program is the actual length minus 4 lines (used for the header and page number, and to prevent printing any text over printer paper perforations). The length is calculated by multiplying the lines per inch by 11. Initially, the page length is set at 12 lines less than the full page length (normally, set at 54). For example, a normal 11-inch sheet of paper will have 66 lines (ie., 6 lines per inch). This is the normal amount for a standard printer (or typewriter). This means that with 66 lines, minus 4 for program use, the most you can get for page length is 62. For example, if the program is set up for research paper style, one inch top and bottom makes 12 lines (12 divided by 6 (lines per inch) make 2 inches). You can reset the page length at any time, but it best to do so at the END of a page. To make sure, you would use it in conjunction with ~FD (see later). «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 8. The commands PNO, PNF The command ~PNO will cause the program to turn the Page Number function On. This command is used in conjunction with the commands ~PS and ~PW (see paragraphs 10 and 11 below). This command allows you to number the pages, independlently from the page header command. This function could be off, with the page header function on, or vice versa. It can be turned on and off as many times as you want, although the page numbers will still be increased as they are issued. Initially, the Page Number function is On. The command ~PNF will cause the program to turn the Page Number function oFf. A final note on this function: only the last issued command will be implemented at the next top-of-page incident. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 9. The command PSxxxxx The command ~PS will cause the program to number the Pages Starting at xxxxx (where xxxxx denotes an actual number). This command, issued properly, means that the program will start to number the pages when it reaches the specified number. For example, ~PS00451 means that the program will start to number the pages when the page number becomes 451. The initial PS number is 2. Ths command must not be confused with the next command. The PS command will cause the PAGE NUMBERING to be started when the page number count reaches the designated number. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 10. The command PWxxxxx The command ~PW will cause the program the number the Pages With xxxx, where xxxxx is a number. This command will cause the program to start the page number count with the desired number, as specified as xxxxx. For example, ~PW00421 means that the FIRST page number will be 421. The initial page number is 1. You must not confuse this command with the preceding one. This command causes the page number to start at 421 (in the example above), although the FIRST page number to be PRINTED will be 451 (as in the example in the preceding comand). WARNING: The ~PS number must NOT be LESS than the ~PW number, or an error will occur. It can, however, be the same: this would mean that the first page to be numbered would be the first number. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 11. The command Sx The command ~S will cause the program to set the Spacing to x, where x is a number from 1 to 3. Unlike any of the preceding or following commands, the spacing can only be 1, 2, or 3 (ie., single, double, or triple). This covers all of the normally-used paper settings. The initial setting is 2 (double). If you desire more blank lines between each printed line, you must personally have blank lines between each of you text file lines. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» 12. The commands WWO, WWF The command ~WWO will cause the program to turn the Word Wrap On. Word wrapping is a handy feature for research papers: it allows you to type a text at 80 columns, and generate a paper with only 60 columns, without having to re-format the text file. The second page of these instructions was done that way. The Word Wrap function is initially set On. The command ~WWF will cause the program to turn the Word Wrapping oFf. It is best to do either of these commands at the START of a line, rather than in the middle or at the end. This way, you will be assured that the integrity of the current line will be preserved. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» Copyright © 1984,1988 by Daniel A. Delamatta and George F. Farrell, Jr. All Rights Reserved «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» Instructions Copyright © 1988 by Daniel A. Delamatta «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»